<?php
/**
 * Miffos framework
 * ----------------------------------------------
 *
 * Copyright (c) 2008, 2009 Martin Sadový (http://sodae.cz)
 *
 * This source file is subject to the "Miffos license" that is bundled
 * with this package in the file license.txt.
 *
 * @copyright  Copyright (c) 2008, 2009 Martin Sadový
 * @license    license.txt
 * @link       http://miffos.sodae.cz
 * @package    miffos
 * @version    $Id$
 */


  class FormSubmitButton extends FormButtonExtends
  {
      protected $type = 'submit';
  }


  class FormResetButton extends FormButtonExtends
  {
      protected $type = 'reset';
  }

  class FormButtonExtends extends FormInputExtends
  {
      public function __construct($form, $name, $label)
      {
          parent::__construct($form, $name, $label);
          $this->element->value = $label;
      }
  }
?>